﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Retirement/retirement.master" AutoEventWireup="true"
    CodeFile="manageClients.aspx.cs" Inherits="Retirement_Admin_manageClients" %>

<asp:Content ID="Content" ContentPlaceHolderID="retirement_ContentPlaceHolder" runat="Server">

    <h2 id="heading">
        <a href="../home.aspx">World Trade Bank</a> > <a href="~/retirement/admin/manageClients.aspx">
            Retirement</a> > Clients</h2>
          
       <style type="text/css">     
        .tbl_clientList th, td
        {
            border: 1px solid #808080;
            text-align: left;
        }
        .tbl_clientList th
        {
            background-color: #B40404;
            color: #FFFFFF;
        }
        
         .Grid th  
        {
            background-color: #B40404;
            color: #FFFFFF;
            height:30px;
        }
    </style>
      
       <p style="font-family: 'Oxygen', Arial; font-weight: bold; font-size: 40px">
        Clients List</p><br />


        <asp:TextBox ID="tb_searchClient" runat="server" 
        placeholder="Name / NRIC / Policy No." Height="25px"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;

        <asp:DropDownList ID="ddl_listType" runat="server" Height="30">   
           <asp:ListItem Value="">All</asp:ListItem> 
           <asp:ListItem  Value="CHANGE_DETAIL">Change Details</asp:ListItem>
           <asp:ListItem  Value="PREMIUM_TOP_UP">Premium Top-Up</asp:ListItem>
           <asp:ListItem Value="SWITCH_REDIRECT">Fund Switch / Premium Redirection</asp:ListItem>
           <asp:ListItem Value="WITHDRAWAL_TERMINATE">Withdrawal / Terminate</asp:ListItem>
           </asp:DropDownList>&nbsp;&nbsp;&nbsp;&nbsp;

         <asp:ImageButton ID="tbn_searchClient" runat="server" 
        ImageUrl="~/Retirement/Images/search.png" Width="30" 
        ImageAlign="AbsBottom" onclick="tbn_searchClient_Click" />
        <br /><br />

        <a href="applicationFormUpload.aspx" style="color:#B40404"; target="_blank">Start New Application</a>

       <br />
    <br />
    <br />
    Total Row Count: <asp:Label ID="totalRowCount" runat="server" Text="Label"></asp:Label>
    <br />
    Total Page:<asp:Label ID="totalPages" runat="server" Text="Label"></asp:Label>
    <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Label ID="lb_noResultsFound" runat="server" Text="No Results Found" 
        Visible="False"></asp:Label>
    <br />
       <div style="text-align:right">
           <asp:Button ID="tbn_previous" runat="server" Text="Previous<-" OnClick="tbn_previous_Click" /><asp:TextBox ID="tb_pageNo" runat="server" Text="1" Width="25" OnTextChanged="tb_pageNo_TextChanged"></asp:TextBox></a>  &nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="tbn_next" runat="server" Text="->Next" OnClick="tbn_next_Click" />
       </div><br />
    <asp:GridView ID="gv_clientList" runat="server" Width="100%" CssClass="Grid"  onrowdatabound="gv_clientList_RowDataBound" AutoGenerateColumns="False"
        DataKeyNames="clientId">
        <Columns>
        <asp:BoundField ItemStyle-Width="150px" DataField="clientName" 
                HeaderText="Client Name" >
<ItemStyle Width="150px"></ItemStyle>
            </asp:BoundField>
        <asp:BoundField ItemStyle-Width="150px" DataField="clientNric" HeaderText="Nric" >
<ItemStyle Width="150px"></ItemStyle>
            </asp:BoundField>

            <asp:HyperLinkField DataNavigateUrlFields="clientPolicyNo" 
                DataNavigateUrlFormatString="~/Retirement/Admin/certificate.aspx?policyNo={0}" 
                DataTextField="clientPolicyNo" HeaderText="Policy No." />

        <asp:TemplateField HeaderText="Requests">
            <ItemTemplate>
                <asp:Panel ID="pl_clinetRequests" runat="server" Width="100%">
                    <asp:GridView ID="gv_clinetRequests" runat="server" AutoGenerateColumns="false" CssClass = "ChildGrid" BorderWidth="0" ShowHeader="False" OnRowDataBound="gv_clinetRequests_RowDataBound" Width="100%">
                        <Columns>   
                           
                             <asp:HyperLinkField DataNavigateUrlFields="href" 
                DataNavigateUrlFormatString="~/Retirement/Admin/{0}" 
                DataTextField="text" />

                                              
                            <asp:BoundField ItemStyle-Width="200px" DataField="date" HeaderText="Date" />
                        </Columns>
                    </asp:GridView>
                </asp:Panel>
            </ItemTemplate>
        </asp:TemplateField>

        <asp:TemplateField HeaderText="Details">
            <ItemTemplate>
                <asp:Panel ID="pl_clinetDetailLinks" runat="server" >
                    <asp:GridView ID="gv_clinetDetailLinks" runat="server" AutoGenerateColumns="false" BorderWidth="0" OnRowDataBound="gv_clinetDetailLinks_RowDataBound"  CssClass = "ChildGrid" ShowHeader="False">
                        <Columns>
                             <asp:HyperLinkField DataNavigateUrlFields="href" Target="_blank"
                DataNavigateUrlFormatString="~/Retirement/Admin/viewClientDetails.aspx?policyNo={0}" 
                DataTextField="text"  />

                        </Columns>
                    </asp:GridView>
                </asp:Panel>
            </ItemTemplate>
        </asp:TemplateField>
            </Columns>
    </asp:GridView>
       <br />
        <div style="text-align:right">
       <a href="">Previous<-</a> &nbsp;&nbsp;&nbsp;&nbsp; <a href=""><asp:TextBox ID="TextBox1" runat="server" Text="1" Width="25"></asp:TextBox></a>  &nbsp;&nbsp;&nbsp;&nbsp;<a href="">->Next</a>
       </div><br />
    
</asp:Content>

